package cn.lyjuan.payment.third.base.pay.vo.res;

import cn.lyjuan.payment.third.base.pay.enums.SimpleStatusEnum;

/**
 * 查询交易状态响应
 */
public class QueryRes<D extends QueryRes.IQueryRes> extends BaseRes
{
    /**
     * 交易状态
     */
    protected SimpleStatusEnum status;

    /**
     * 支付平台交易状态说明信息
     */
    protected String chlMsg;

    /**
     * 支付平台交易流水号
     */
    protected String tranNo;

    /**
     * 支付平台查询信息
     */
    protected D params;

    public QueryRes()
    {
    }

    public QueryRes(SimpleStatusEnum status, String chlMsg)
    {
        this.status = status;
        this.chlMsg = chlMsg;
    }

    public QueryRes(SimpleStatusEnum status, String chlMsg, String tranNo, D params)
    {
        this.status = status;
        this.chlMsg = chlMsg;
        this.tranNo = tranNo;
        this.params = params;
    }

    public SimpleStatusEnum getStatus()
    {
        return status;
    }

    public void setStatus(SimpleStatusEnum status)
    {
        this.status = status;
    }

    public String getChlMsg()
    {
        return chlMsg;
    }

    public void setChlMsg(String chlMsg)
    {
        this.chlMsg = chlMsg;
    }

    public String getTranNo()
    {
        return tranNo;
    }

    public void setTranNo(String tranNo)
    {
        this.tranNo = tranNo;
    }

    public D getParams()
    {
        return params;
    }

    public void setParams(D params)
    {
        this.params = params;
    }

    @Override
    public String toString()
    {
        return "QueryRes{" +
                "status=" + status +
                ", chlMsg='" + chlMsg + '\'' +
                ", tranNo='" + tranNo + '\'' +
                ", params=" + params +
                ", isSucc=" + isSucc +
                ", msg='" + msg + '\'' +
                '}';
    }

    public interface IQueryRes{
    }
}
